package com.woniuxy.lrz.carlproject.controller.form.serviceform;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel("添加服务表单")
public class AddServiceForm {

    @NotBlank
    @Length(max=64)
    @ApiModelProperty("服务名")
    private String serviceName;

    @NotNull
    @ApiModelProperty("服务价格")
    private Double servicePrice;

    @NotNull
    @ApiModelProperty("关联二级分类id")
    private Integer serviceSecondId;

    @NotBlank
    @ApiModelProperty("服务图片")
    private String servicePhoto;

}
